import axios from '../request/axios.js'

export const getCompanyInfo = () => {
  return axios({
    url: "/companyInfo",
    method: "get"
  })
}

export const getNewsList = (data) => {
  return axios({
    url: "/getNewsList?page="+data.page+"&page_size="+data.page_size,
    method: "get"
  })
}

export const getNewsInfo = (id) => {
  return axios({
    url: "/getNewsInfo?id="+id,
    method: "get"
  })
}

export const getTeamList  = () => {
  return axios({
    url: "/getTeamList",
    method: "get"
  })
}

export const getCareersList  = () => {
  return axios({
    url: "/getCareersList",
    method: "get"
  })
}

export const getCareersInfo  = (id) => {
  return axios({
    url: "/getCareersInfo?id="+id,
    method: "get"
  })
}

export const getPartnersList  = (data) => {
  return axios({
    url: "/getPartnersList?page="+data.page+"&page_size="+data.pageSize,
    method: "get"
  })
}
